﻿<UserControl x:Class="MyRecipeBook.UI.Controls.ControlConversionViewer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        DataContext=""     
        Height="Auto" Width="Auto">
    
    <UserControl.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/MyRecipeBook.UI;component/Themes/ControlDictionary.xaml" />
                <ResourceDictionary Source="/MyRecipeBook.UI;component/Themes/BrushDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />            
        </Grid.RowDefinitions>
        
        <ToolBar Grid.Row="0" >
            <Button x:Name="ButtonAdd" Content="Add" />
            <Button x:Name="ButtonUpdate" Content="Update" />
            <Button x:Name="ButtonRemove" Content="Remove" />
            <Separator />
            <Button x:Name="ButtonPrint" Content="Print" />
            <Separator />
            <Button x:Name="ButtonImport" Content="Import" />
            <Button x:Name="ButtonExport" Content="Export" />
            <Separator />
            <Button x:Name="ButtonRefresh" Content="Refresh" />
        </ToolBar>

        <ListView x:Name="ListViewConversions" Grid.Row="1" SelectionMode="Single">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="From"  >
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Border>
                                    <TextBlock Text="{Binding NiceFrom}" />
                                </Border>                                    
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <GridViewColumn Header="To">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding NiceTo}" />
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
        
    </Grid>
</UserControl>
